why do divisibility rules work the way they do